/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-23 18:27:16
 * @LastEditTime: 2019-08-27 09:49:52
 * @LastEditors: Please set LastEditors
 */
// 导入所有接口
import api from '@/http/api'

const install = Vue => {
    if (install.installed)
        return;

    install.installed = true;

    Object.defineProperties(Vue.prototype, {
        // 注意，此处挂载在 Vue 原型的 $api 对象上
        $api: {
            get() {
                return api
            }
        }
    })
}

export default install
